Class Connector

java.lang.Object
com.netscape.certsrv.connector.Connector
Direct Known Subclasses:
HttpConnector

public class Connector extends Object
This interface represents a connector that forwards CMS requests to a remote authority. To register a connector, one can add the following to the CMS.cfg:

  Example for KRA type connector.
 ca.connector.KRA.enable=true
 ca.connector.KRA.host=thehost.netscape.com        #Remote host.
 ca.connector.KRA.port=1974                        #Remote host port.
 ca.connector.KRA.nickName="cert-kra"              #Nickname of connector for identity purposes.
 ca.connector.KRA.uri="/kra/connector"             #Uri of the KRA server.
 ca.connector.KRA.id="kra"
 ca.connector.KRA.minHttpConns=1                   #Min connection pool connections.
 ca.connector.KRA.maxHttpConns=10                  #Max connection pool connections.
 
  • Field Details

  • Constructor Details

    • Connector

      public Connector()
  • Method Details

    • getCMSEngine

      public CMSEngine getCMSEngine()
    • setCMSEngine

      public void setCMSEngine(CMSEngine engine)
    • init

      public void init() throws EBaseException
      Throws:
      EBaseException
    • send

      public boolean send(Request req) throws EBaseException
      Sends the request to a remote authority.
      Parameters:
      req - Request to be forwarded to remote authority.
      Returns:
      true for success, otherwise false.
      Throws:
      EBaseException - Failure to send request to remote authority.
    • send

      public HttpResponse send(String op, String msg) throws EBaseException
      Sends the request to a remote authority.
      Parameters:
      op - operation to determine receiving servlet (multi-uri support)
      msg - Request to be forwarded to remote authority.
      Returns:
      HttpResponse to be parsed by client
      Throws:
      EBaseException - Failure to send request to remote authority.
    • start

      public void start()
      Starts this connector.
    • stop

      public void stop()
      Stop the connector.